package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Room {
    /** */
    private Long id;

    /** */
    private String room_id;
    //人数
    private int person;

    public String getJson() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("room_id", room_id);
        return JSON.toJSONString(map);
    }
}